package com.fm;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MDA {
	//======================以下是键值配置
	public final static String SEESION_KEY = new String("LOGON-INFO");

	//系统根路劲
	public static String SYSTEM_REAL_PATH = new String();
	//文件夹
	public final static String UPLOAD_FILE_FOLDER = new String("uploadfiles");
	//图片
	public final static String UPLOAD_IMG_FOLDER = new String("uploadimgs");
	//增加文件的绝对路劲
	public final static Map<String, Object> KEY_ABSOLUTE_PATH = new HashMap<>();
	static{
		KEY_ABSOLUTE_PATH.put(MDA.UPLOAD_FILE_FOLDER, "uploadfilepath");
		KEY_ABSOLUTE_PATH.put(MDA.UPLOAD_IMG_FOLDER, "uploadimgpath");
	}
	//可上传的文件后缀名称
	public final static Map<String,Object> FILE_SUFFIX = new HashMap<>();
	static{
		FILE_SUFFIX.put("doc",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("docx",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("xls",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("xlsx",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("ppt",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("pptx",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("pdf",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("rar",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("zip",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("doc",MDA.UPLOAD_FILE_FOLDER);
		FILE_SUFFIX.put("png",MDA.UPLOAD_IMG_FOLDER);
		FILE_SUFFIX.put("jpg",MDA.UPLOAD_IMG_FOLDER);
		FILE_SUFFIX.put("bmp",MDA.UPLOAD_IMG_FOLDER);
		FILE_SUFFIX.put("jpeg",MDA.UPLOAD_IMG_FOLDER);
		FILE_SUFFIX.put("gif",MDA.UPLOAD_IMG_FOLDER);
	}
	//支持的最大文件大小,单位M
	public final static Long MAX_FILE_SIZE = new Long(100);


	
	
	//======================以下是开关配置
	//是否进行session验证
	public final static String SWITCH_CHECK_SESSION = new String("N");
	
	
	//========================以下是路劲配置
	public final static List<String> DIR_LIST_FOR_YUICOMPRESSOR = new ArrayList<>();
    

}
